#include <ncurses.h>
#include <string.h>

int main()
{
    char c[128];
    char arg[128];
    int i = 0;
    int row, col;

    bzero(c, 128);
    bzero(arg, 128);

    initscr();
    getmaxyx(stdscr, row, col);
    while (strcmp(c, "x") != 0) {
        mvprintw(10, 10, "Hello Chardi!    cmd:%s arg:%s\n", c, arg);
        mvprintw(12, 10, "cmd: ");
        mvscanw(12, 15, "%s %s", c, arg);
        for (i = 15; i < col; i++)
            mvprintw(12, i, " ");
    }
    endwin();

    return 0;
}

